package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type GoldPrice struct {
	Id        int    `json:"id" gorm:"primaryKey;autoIncrement"` //int(10) NOT NULL AUTO_INCREMENT,
	Gold      int    `json:"gold"`                               //int(10) DEFAULT '0' COMMENT '金币/克拉数量',
	GoldIos   int    `json:"gold_ios"`                           //int(10) DEFAULT '0' COMMENT 'ios内购金币/克拉数量 废弃',
	GoldAdded int    `json:"gold_added"`                         //int(10) DEFAULT '0' COMMENT '额外赠送数量',
	Price     int    `json:"price"`                              //int(10) DEFAULT NULL COMMENT '价格/分',
	ItemCarat string `json:"item_carat"`                         //产品ID唯一标识字符串
	Sequence  int    `json:"sequence"`                           //顺序
}

func (GoldPrice) TableName() string {
	return fmt.Sprintf("%sgold_price", models.Prefix)
}
